const pageService = require("@/server/page");
const { successData, sendCode } = require("@/utils/r/result");
const page = {
  async GetList(req, res) {
    successData(res, await pageService.GetList());
  },
  async SaveOrUpdate(req, res) {
    sendCode(res, await pageService.SaveOrUpdate(req.body));
  },
  async Delete(req, res) {
    sendCode(res, await pageService.Delete(req.body));
  },
};

module.exports = page;
